<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<c:set var="cpx" value="${pageContext.request.contextPath}"></c:set>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="${cpx}/MessageServlet?type=edit" method="post" onsubmit="return check();">
   		<table >
   		<input name="id" id="id" type="hidden" value="${message.id}">
            <tr>
                <td width="60px">标题：</td>
                <td><input name="title" id="title" type="text" value="${message.title}"></td>
            </tr>
            <tr>
                <td>内容：</td>
                <td><textarea rows="15" cols="40" name="content" id="content">${message.content}</textarea></td>
            </tr>
            
            <tr>
                <td colspan="2"><input type="submit" value="修改"></td>
            </tr>
        </table>
     </form>
</body>
</html>